package com.orphan.marketBack.controller;

import com.orphan.marketBack.po.dto.EacherDto;
import com.orphan.marketBack.service.EchartsCountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

@RestController
public class EchartsCount {
  @Autowired
  EchartsCountService service;
  @GetMapping("countY")
  public List <EacherDto> getCount(){
    List list = service.orderBY();
    return list;
  }
}
